.md-header__source {
  display: none;
}

@media screen and (min-width: 60em) {
  [dir='ltr'] .md-header__source {
    margin-left: 1rem;
  }

  [dir='rtl'] .md-header__source {
    margin-right: 1rem;
  }

  .md-header__source {
    display: inline-flex;
  }
}

@media screen and (min-width: 76.25em) {
  [dir='ltr'] .md-header__source {
    margin-left: 1.4rem;
  }

  [dir='rtl'] .md-header__source {
    margin-right: 1.4rem;
  }
}

.md-header--shadow {
  box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.1), 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1), box-shadow 0.25s;
}

.md-header__inner {
  align-items: center;
  display: flex;
  padding: 0 0.2rem;
}

.md-header__source {
  display: none;
  color: var(--color-on-theme);
}

.md-header__source a {
  color: var(--color-on-theme);
}

@media screen and (min-width: 60em) {
  [dir='ltr'] .md-header__source {
    margin-left: 1rem;
  }

  [dir='rtl'] .md-header__source {
    margin-right: 1rem;
  }

  .md-header__source {
    display: block;
  }
}

@media screen and (min-width: 76.25em) {
  [dir='ltr'] .md-header__source {
    margin-left: 1.4rem;
  }

  [dir='rtl'] .md-header__source {
    margin-right: 1.4rem;
  }
}

.md-source {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: block;
  font-size: 0.65rem;
  line-height: 1.2;
  transition: opacity 0.25s;
  white-space: nowrap;
}

.md-source:hover {
  opacity: 0.7;
}

.md-source__icon {
  display: inline-block;
  height: 2.4rem;
  vertical-align: middle;
  width: 38px;
}

[dir='ltr'] .md-source__icon svg {
  margin-left: 0.6rem;
}

[dir='rtl'] .md-source__icon svg {
  margin-right: 0.6rem;
}

.md-source__icon svg {
  margin-top: 0.6rem;
}

[dir='ltr'] .md-source__icon + .md-source__repository {
  margin-left: -2rem;
}

[dir='rtl'] .md-source__icon + .md-source__repository {
  margin-right: -2rem;
}

[dir='ltr'] .md-source__icon + .md-source__repository {
  padding-left: 2rem;
}

[dir='rtl'] .md-source__icon + .md-source__repository {
  padding-right: 2rem;
}

[dir='ltr'] .md-source__repository {
  margin-left: 0.6rem;
}

[dir='rtl'] .md-source__repository {
  margin-right: 0.6rem;
}

.md-source__repository {
  display: inline-block;
  max-width: calc(100% - 1.2rem);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.md-source__facts {
  font-size: 0.55rem;
  list-style-type: none;
  margin: 0.1rem 0 0;
  opacity: 0.75;
  overflow: hidden;
  padding: 0;
}

.md-source__repository--active .md-source__facts {
  -webkit-animation: facts 0.25s ease-in;
  animation: facts 0.25s ease-in;
}

.md-source__fact {
  display: inline-block;
}

.md-source__repository--active .md-source__fact {
  -webkit-animation: fact 0.4s ease-out;
  animation: fact 0.4s ease-out;
}

[dir='ltr'] .md-source__fact:before {
  margin-right: 0.1rem;
}

[dir='rtl'] .md-source__fact:before {
  margin-left: 0.1rem;
}

.md-source__fact:before {
  background-color: currentcolor;
  content: '';
  display: inline-block;
  height: 0.6rem;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: text-top;
  width: 0.6rem;
}

[dir='ltr'] .md-source__fact:nth-child(1n + 2):before {
  margin-left: 0.4rem;
}

[dir='rtl'] .md-source__fact:nth-child(1n + 2):before {
  margin-right: 0.4rem;
}

.md-source__fact--version:before {
  -webkit-mask-image: var(--md-source-version-icon);
  mask-image: var(--md-source-version-icon);
}

.md-source__fact--stars:before {
  -webkit-mask-image: var(--md-source-stars-icon);
  mask-image: var(--md-source-stars-icon);
}

.md-source__fact--forks:before {
  -webkit-mask-image: var(--md-source-forks-icon);
  mask-image: var(--md-source-forks-icon);
}

.md-source__fact--repositories:before {
  -webkit-mask-image: var(--md-source-repositories-icon);
  mask-image: var(--md-source-repositories-icon);
}

:root {
  --md-source-forks-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 2.122a2.25 2.25 0 1 0-1.5 0v.878A2.25 2.25 0 0 0 5.75 8.5h1.5v2.128a2.251 2.251 0 1 0 1.5 0V8.5h1.5a2.25 2.25 0 0 0 2.25-2.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 6.25v-.878zm3.75 7.378a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm3-8.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5z"/></svg>');
  --md-source-repositories-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 1 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 0 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 0 1 1-1h8zM5 12.25v3.25a.25.25 0 0 0 .4.2l1.45-1.087a.25.25 0 0 1 .3 0L8.6 15.7a.25.25 0 0 0 .4-.2v-3.25a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25z"/></svg>');
  --md-source-stars-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.75.75 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694v.001z"/></svg>');
  --md-source-version-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2.5 7.775V2.75a.25.25 0 0 1 .25-.25h5.025a.25.25 0 0 1 .177.073l6.25 6.25a.25.25 0 0 1 0 .354l-5.025 5.025a.25.25 0 0 1-.354 0l-6.25-6.25a.25.25 0 0 1-.073-.177zm-1.5 0V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.75 1.75 0 0 1 1 7.775zM6 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"/></svg>');
}
